package tree;

import java.util.ArrayList;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Tree {

    private Integer id;

    private String name;

    private Integer pid;

    private List<Tree> children = new ArrayList<>();

}
